package com.xcity.record.mail;

import java.util.ArrayList;
import java.util.List;

public class MailAttach {
	protected int gold;
	protected int stone;
	protected int exp;
	protected List<ItemInfo> items;
	
	public MailAttach(){};
	public MailAttach(int gold, int stone){
		this(gold, stone, 0);
	}
	
	public MailAttach(int gold, int stone, int exp){
		this(gold, stone, exp, null);
	}
	
	public MailAttach(int gold, int stone, int exp, List<ItemInfo> items){
		this.gold = gold;
		this.stone = stone;
		this.items = items;
	}
	
	public void addItem(int id, int count){
		if(items == null){
			items = new ArrayList<ItemInfo>(2);
		}
		items.add(new ItemInfo(id, count));
	}
	
	public int getGold() {
		return gold;
	}
	public void setGold(int gold) {
		this.gold = gold;
	}
	public int getStone() {
		return stone;
	}
	public void setStone(int stone) {
		this.stone = stone;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}
	public List<ItemInfo> getItems() {
		return items;
	}
	public void setItems(List<ItemInfo> items) {
		this.items = items;
	}
	
}
